package com.model.dome1;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;

public class DataChange {
    public static void main(String[] args){
        try {
            String s="2018-03-04";
            SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
            Date parse = sdf.parse(s);

//        System.out.println(pattern);
            SimpleDateFormat sdf1=new SimpleDateFormat("yyyy年MM月dd日");
            String format = sdf1.format(parse);
        System.out.println(format);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
